package cn.ibizlab.odoo.core.odoo_mail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mail.domain.Mail_followers;
import cn.ibizlab.odoo.core.odoo_mail.filter.Mail_followersSearchContext;

/**
 * 实体[Mail_followers] 服务对象接口
 */

public interface IMail_followersService{
     Mail_followers get(Integer id) ;
     Mail_followers get(Mail_followers mail_followers) ;
     boolean create(Mail_followers mail_followers) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Mail_followers> mail_followerss, int batchSize) ;
     boolean update(Mail_followers mail_followers) ;
     void createBatch(List<Mail_followers> mail_followerss, int batchSize) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mail_followers> searchDefault(Mail_followersSearchContext context) ;

    /**
     * 根据讨论频道查询
     */
     Page<Mail_followers> selectByOdoo_channel(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Mail_followers> selectByOdoo_partner(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mail_followers convert2Domain(cn.ibizlab.odoo.core.client.model.Imail_followers model ,Mail_followers domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imail_followers convert2Model(Mail_followers domain , cn.ibizlab.odoo.core.client.model.Imail_followers model);

}
